package cn.com.qc.viewholder;

import android.support.annotation.LayoutRes;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import java.sql.Date;
import java.text.SimpleDateFormat;

import butterknife.BindView;
import cn.com.qc.R;
import cn.com.qc.bean.SearchCompanyBean;
import cn.com.qc.bean.SearchPositionBean;


public class SearchPosViewHolder extends YBaseViewHolder<SearchPositionBean.SearchPositionData> {

    public SearchPosViewHolder(ViewGroup parent, @LayoutRes int res) {
        super(parent, res);
    }

    @BindView(R.id.position)
    TextView position;
    @BindView(R.id.name)
    TextView name;
    @BindView(R.id.address)
    TextView address;
    @BindView(R.id.time)
    TextView time;
    @BindView(R.id.salary)
    TextView salary;

    @Override
    public void setData(SearchPositionBean.SearchPositionData data) {
        position.setText("职位名称:" + data.getJob());
        name.setText("公司名称:" + data.getCompany());
        address.setText("地点:" + data.getLocation());
        time.setText("日期:" + data.getDate());
        salary.setText("" + data.getPrice());
    }

}
